package com.data4.utils.service;


import com.data4.feignapi.dto.Result;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface OSSService {
    Result uploadFile(String bucketName, MultipartFile file);

    Result deleteFile(String bucketName,String fileName);

    Result getFileInfo(String bucketName, String fileName) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

}
